package com.example.sys.module.service;

import com.example.sys.module.mode.SysModuleInfo;

import java.util.Map;

public interface SysModuleRoleService {

    public static final String PREF = "/";
    public static final String BLANK = ",";
    public static final String OR = "||";
    public static final String AND = "&&";
    public static final String ROLE_PREF = "roles[";
    public static final String ROLE_END = "]";
    public static final String ADD = "_ADD";
    public static final String ADD_AUTH = "/add/**";
    public static final String EDIT = "_EDIT";
    public static final String EDIT_AUTH = "/edit/**";
    public static final String DELETE = "_DELETE";
    public static final String DELETE_AUTH = "/delete/**";
    public static final String VIEW = "_VIEW";
    public static final String VIEW_AUTH = "/view/**";
    public static final String AUTHREADERVALIDATOR = "authReaderValidator";
    public static final String AUTHEDITORVALIDATOR = "authEditorValidator";
    public static final String AUTHDELETEVALIDATOR = "authDeleteValidator";
    public void loadRoleMap(Map<String,String> map , SysModuleInfo sysModuleInfo);
    public Map<String,String> getRoleMap(SysModuleInfo sysModuleInfo);
}
